scrollbar grippers
authorRaymond Penners <pennersr@src.gnome.org>
Sat, 1 Nov 2003 15:28:25 +0000 (15:28 +0000)
committerRaymond Penners <pennersr@src.gnome.org>
Sat, 1 Nov 2003 15:28:25 +0000 (15:28 +0000)
modules/engines/ms-windows/ChangeLog.old
modules/engines/ms-windows/xp_theme.c

index c972560dac7903a116728fdf5e0377ebea459ac2..334bf18497146b9a6e0c23cd39a23a9d1a93a9a7 100755 (executable)
@@ -1,3 +1,8 @@
+2003-11-01  Raymond Penners  <raymond@dotsphinx.com>\r
+\r
+       * src/xp_theme.c: Do not display XP scrollbar grippers on tiny\r
+       scrollbars.\r
+\r
 2003-10-23  Raymond Penners  <raymond@dotsphinx.com>\r
 \r
        * === Released 0.5.1 ===\r
index 8a0f2ef98f66fa292d6d3f6f3ff41e20c5b856f1..e2e002d5e348ff39f72e54fc18df8201318ca4c7 100755 (executable)
@@ -666,6 +666,15 @@ xp_theme_draw (GdkWindow *win, XpThemeElement element, GtkStyle *style,
   GdkDrawable *drawable;
   int part_state;
 
+  /* Do not display grippers on tiny scroll bars, the limit imposed
+     is rather arbitrary, perhaps we can fetch the gripper geometry
+     from somewhere and use that... */
+  if ((element == XP_THEME_ELEMENT_SCROLLBAR_GRIPPER_H && width < 16)
+      || (element == XP_THEME_ELEMENT_SCROLLBAR_GRIPPER_V && height < 16))
+    {
+      return TRUE;
+    }
+  
   if (! xp_theme_is_drawable (element))
     return FALSE;